package com.example.springboot.service;

import com.example.springboot.Dao.UserRedisDao;
import com.example.springboot.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserRedisService {

    @Autowired
    private UserRedisDao userRedisDao;

    public void put(User user){
         userRedisDao.save(user);
    }

    public User get(User user){
        return userRedisDao.getUser(user);
    }

    public void delete(){
        userRedisDao.deletUser();
    }
}
